import request from '@/utils/request'

// 创建阿里云上传凭证
export function getVoidUploadToken(query) {
    return request({
        url: `/aliyun/video/getVoidUploadToken?videoTitle=${query.videoTitle}&fileName=${query.fileName}`,
        method: 'post',
    })
}

// 重新获取凭证
export function refreshUploadVideo(videoId) {
    return request({
        url: '/aliyun/video/refreshUploadVideo?videoId=' + videoId,
        method: 'post'
    })
}